import type { CSSProperties, ReactNode } from "react";

export interface CardProps {
  title?: string | ReactNode;
  className?: string;
  style?: CSSProperties;
  collapsible?: boolean; // 是否可以折叠, 默认折叠的状态, true 折叠，false 不折叠
  collapse?: boolean; // 折叠时，折叠的状态
  defaultCollapse?: boolean; // 折叠时，默认的折叠状态
  children?: ReactNode;
  contentOverflow?: "auto" | "visible" | "hidden" | "scroll" | "inherit";
  onMore?: () => void; //点击更多
  onEdit?: () => void; // 编辑
  onCollapse?: (state: boolean) => void; //卡片折叠/展开时的回调
  onRefresh?: () => void;
  onDelete?: () => void; //右上角操作区域 删除回调
}
